import matplotlib.pyplot as plt
import numpy as np

# x = np.arange(-10,10,)
x = np.linspace(-10,10,1000)
y = x**2
y1 = x * 2

plt.figure(figsize=(8, 5))
plt.plot(x, y)
# plt.plot(x, y1)



ax = plt.gca()
ax.spines['right'].set_color('none')
ax.spines['top'].set_color('none')

ax.xaxis.set_ticks_position('bottom')
ax.spines['bottom'].set_position(('data', 0))

ax.yaxis.set_ticks_position('left')
ax.spines['left'].set_position(('data', 0))

plt.show()
